package com.flower.dao;

import com.flower.pojo.Flower;
import com.flower.pojo.Imgs;
import com.flower.pojo.Store;
import com.flower.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserMapper {

    //通过用户名查询
    User loginUserByAccount(@Param("account") String account);

    //增加用户
    int addUser(User user);

    //修改个人信息
     int UserInformationUpdate(User user);
     //通过Id查用过户
   User queryById(@Param("uid")Integer uid);

    //通过商家名模糊查询商店
     List<Store> queryStoreByName(@Param("sname")String sname);

    //通过鲜花名模糊查询商店
    List<Flower> queryFlowerByName(Map<String,Object> map);

    Flower queryFlowerByFid(Integer fid);

    List<Imgs> queryImgsByFid(Integer fid);
}